import request from '@/plugin/axios'

export function queryRoleMenuRelations (data) {
  return request({
    url: '/v1/roleMenuRelation/list',
    method: 'post',
    data
  })
}

export function addRoleMenuRelation (data) {
  return request({
    url: '/v1/roleMenuRelation/batchAdd',
    method: 'post',
    data
  })
}

export function updateRoleMenuRelation (id, data) {
  return request({
    url: `/v1/roleMenuRelation/updateById/${id}`,
    method: 'post',
    data
  })
}

export function removeRoleMenuRelation (data) {
  return request({
    url: `/v1/role-menu-relation/deleteByIds`,
    method: 'delete',
    data
  })
}
